<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<title>PC</title>
		<script type="text/javascript">
			// 如果判断下来是pc 那么跳转嵌入 iframe h5
			~ function() {
				// 是不是移动端
				var isMobile = /Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent);
				const id = window.location.href.match(new RegExp("id=(.*)#/"))[1];
				console.log(id);
				// document.addEventListener('DOMContentLoaded', function() {
				// 	const iframeDom = document.getElementById('iframe')
				// 	iframeDom.src = `./index.html?id=${id}&t=${new Date().getTime()}`
				// });
				if (isMobile) {
					window.location.href = `index.html`
				}
				// http://localhost:5173/index.html?id=2#/
			}()
		</script>
	</head>
	<body style="background:white">
		<div class="mobileBg">
			<iframe id="iframe" style="background: white; display: block; margin: 94px auto;" width="402" height="706"
				src="./index.html" frameborder="0"></iframe>
		</div>
	</body>
	<style type="text/css">
		.mobileBg {
			width: 480px;
			height: 893px;
			background-image: url('static/pcbg.png');
			background-repeat: no-repeat;
			background-size: 100% 100%;
			display: block;
			margin: 0 auto;
			padding-top: 1px;
		}
	</style>
</html>